/*
 *NOTE:Auto generated dao
*/
package com.surfilter.modules.impuser.dao;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.surfilter.modules.impuser.model.HtImportUserModel;
import com.surfilter.platform.base.dao.DaoBase;
import com.surfilter.platform.base.model.PageInfo;

@Repository(value="Service_impUserHtImportUserDao")
public class HtImportUserDao extends DaoBase<HtImportUserModel>{

	@Resource(name = "surfilterSqlMapClient")
	private SqlMapClient sqlMapClient;

	public void initSqlMapClient() {
		this.setSqlMapClient(sqlMapClient);
	}
	
		public java.lang.Integer addHtImportUser(HtImportUserModel htImportUserModel) {
		java.lang.Integer key = (java.lang.Integer) this.addObject("addHtImportUser", htImportUserModel);
		return key;
	}
	
	public void chgHtImportUser(HtImportUserModel htImportUserModel) {
		this.updateObject("chgHtImportUser", htImportUserModel);
	}
	
	public void delHtImportUser(HtImportUserModel htImportUserModel) {
		this.updateObject("delHtImportUser", htImportUserModel);
	}

	public List<HtImportUserModel> getHtImportUsers(HtImportUserModel htImportUserModel, PageInfo pageInfo) {
		return this.getListByObjectForPage("getHtImportUsers", htImportUserModel, pageInfo);
	}
	
	public void delHtImportUsers(List<java.lang.Integer> ids){
		this.deleteObject("delHtImportUsers", ids);
	}
	
	public int getHtImportUsersCount(HtImportUserModel htImportUserModel) {
		return (Integer) this.getObjectByObject("getHtImportUsersCount", htImportUserModel);
	}
}
